import { store } from '@/store';

export default function useAuth() {
    const userInfo = store.getState().user;

    return { isLogin: Boolean(userInfo.auth?.token) };
}
